#include <iostream>

using namespace std;

int main()
{
	int numbase8_0, numbase8_1, numbase8_2; // numbase8_* - input from the user as in number in base 8 form.
	int numbase10; // numbase10 - will store the number in base10 form.
	int current_digit; // current_digit 

	cout << "Please enter 3 digits for a number in base 8 form" << endl;
	cin >> numbase8_0 >> numbase8_1 >> numbase8_2;

	numbase10 = numbase8_0 * 8*8 + numbase8_1 * 8 + numbase8_2;

	cout << "The number in binary form is: ";
	while(numbase10 > 0)
	{
		cout << numbase10 % 2;
		numbase10 = numbase10 / 2;
	}
	cout << endl;

	return 0;
}
